<?php if(!defined('A')) exit;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台登陆</title>
<?php
loadcss(array('login'));
loadjs('jquery',P_JS);
?>
<script>
	$(document).ready(function(){
		var imgcode=$('#imgcode');
		imgcode.css('cursor','pointer').hide();
		$('#code').focus(function(){
			if(imgcode.attr('src')==''){
				imgcode.attr('src','<?php echo $this->conf->WEB['url'];?>code.php?'+Math.random()).fadeIn();
			}
		});
		imgcode.click(function(){
			$(this).attr('src','<?php echo $this->conf->WEB['url'];?>code.php?'+Math.random());
		});
	});
</script>
</head>
<body>
<div id="container">
									
<h2>后台登陆</h2>			
<form id="form1" action="<?php echo url('login','login_');?>" method="post">	
	<fieldset>
    	<legend>后台登陆</legend>
        
		<p class="first">
			<label for="user_name">账号</label>
			<input type="text" name="user_name" id="user_name" value="admin" />
		</p>
        
        <p>
			<label for="user_password">密码</label>
			<input type="password" name="user_password" id="user_password" value="admin" />
		</p>
        
		<p>
			<label for="code">验证码</label>
			<input type="text" name="code" id="code" autocomplete="off" />
		</p>	
        <p class="code">
        <img id="imgcode" src="" title="点击我更换一张" />
        </p>	
	</fieldset>
    
	<p class="submit"><button type="submit">登陆</button></p>
</form>
</div>

</body>
</html>